#ifndef CIRCLE_BUF_H_
#define CIRCLE_BUF_H_
typedef unsigned char u8;
typedef unsigned int u32;

void initRingbuffer(void);
int wirteRingbuffer(char* buffer, u32 len);
int readRingbuffer(char* buffer, u32 len);
u32 getRingbufferValidLen(void);
void releaseRingbuffer(void);

#endif /* RINGBUFFER_H_ */